package com.gitee.huanminabc.utils_common.enums;

/**
 * @program: java-huanmin-utils
 * @description:
 * @author: huanmin
 * @create: 2025-02-17 18:12
 **/
public enum UploadEnum {

    /**
     * 上传成功
     */
    SUCCESS("上传成功"),
    /**
     * 上传中
     */
    UPLOADING("上传中"),
    /**
     * 上传失败
     */
    FAIL("上传失败");


    final String content;

    UploadEnum(String content) {
        this.content = content;
    }

    //通过名称获取枚举
    public static UploadEnum getEnum(String name) {
        for (UploadEnum e : UploadEnum.values()) {
            if (e.name().equals(name)) {
                return e;
            }
        }
        return null;
    }


}
